﻿// Copyright (c)  YISH. All rights reserved.
// Licensed under the MIT License, See License.txt in the project root for license information.

namespace NSQL.Expressions.Functions
{
    public interface ISubStringFunction : IStringFunction
    {
        IStringExpression Text { get; set; }

        /// <summary>
        /// start position
        /// </summary>
        /// <remarks>actual start index is [position - 1]</remarks>
        IIntegerExpression Position { get; set; }
        
        /// <summary>
        /// substring length, default is -1
        /// </summary>
        IIntegerExpression Length { get; set; }
    }
}